home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / scoobykickinit.swf / scripts / __Packages / com / ndimedia / events / Event.as next >
Text File  |  2007-09-28  |  503b  |  27 lines

  1. class com.ndimedia.events.Event
  2. {
  3.    function Event(type, target)
  4.    {
  5.       this.m_type = type;
  6.       this.m_target = target;
  7.       this.m_data = {};
  8.    }
  9.    function get type()
  10.    {
  11.       return this.m_type;
  12.    }
  13.    function get target()
  14.    {
  15.       return this.m_target;
  16.    }
  17.    function get data()
  18.    {
  19.       return this.m_data;
  20.    }
  21.    function addData(data)
  22.    {
  23.       trace("data.data = " + data.__get__data());
  24.       this.m_data[data.__get__label()] = data.data;
  25.    }
  26. }
  27.